<ul class="breadcrumb">
    <li class="active">
        Admin
    </li>
</ul>

<section id="admin_films" class="admin">
    <h1>Liste des Films</h1>
    
    <div id="list-films">

        <table class="table table-striped table-bordered table-hover">
            <tr>
                <th>ID</th>
                <th>Titre</th>
                <th>Actions</th>
            </tr>
            <?php foreach($films as $film) : ?>
            <tr>
                <td><?php echo $film['Film']['id'] ?></td>
            	<td><?php echo $film['Film']['titre'] ?></td>
                <td>
                <?php echo $this->Html->link('Séances', array(
                    'admin' => true,
                    'controller' => 'seances',
                    'action' => 'index',
                    $film['Film']['id']
                ), array(
                    'class' => 'btn btn-small'
                )); ?> 
                <?php echo $this->Html->link('Modifier', array(
                    'admin' => true,
                    'controller' => 'films',
                    'action' => 'edit',
                    $film['Film']['id']
                ), array(
                    'class' => 'btn btn-small'
                )); ?> 
                <?php echo $this->Html->link('Supprimer', array(
                    'admin' => true,
                    'controller' => 'films',
                    'action' => 'delete',
                    $film['Film']['id']
                ), array(
                    'class' => 'btn btn-danger btn-small'
                )); ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>

        <?php echo $this->Html->link('Ajouter un film', array(
            'admin' => true,
            'controller' => 'films',
            'action' => 'add'
        ), array(
            'class' => 'btn btn-primary'
        )); ?>
    </div>
</section>